package com.jy.adscm.wechat.service;

import com.jy.adscm.exception.AdscmSystemException;
import com.jy.adscm.wechat.bean.LoginUser;
import com.jy.adscm.wechat.bean.WechatUser;
import com.baomidou.mybatisplus.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zyl
 * @since 2019-09-23
 */
public interface WechatUserService extends IService<WechatUser> {

    Boolean insertWechatUser(WechatUser wechatUser);

    WechatUser selectByOpenId(String openId);

    List<WechatUser> selectByRoleId(String roleId, String pid);

    String login(LoginUser loginUser) throws AdscmSystemException;

    Boolean loginout(String sessionKey) throws AdscmSystemException;
}
